{% extends 'Base/main.content.lists.div.html.twig' %}
{% import 'Base/list_item.twig' as listItem %}
{#默认不能删除和新增#}
{#{% block addBtn %}{% endblock %}#}
{#{% block delBtn %}{% endblock %}#}

{% block tableHead %}
    <tr>
        <th align="" width="5%">选择</th>
        <th align="" width="10%">名称</th>
        <th align="" width="">链接</th>
        <th align="" width="">排序</th>
        {#<th align="" width="">图片</th>#}
        <th align="" width="10%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.Links_id }}"/></span>
            </td>
            <td align='' width='' id='name_{{ Entity.Links_id }}'>
                {{ listItem.text('name',Entity.Links_name,Entity.Links_id) }}
            </td>
            <td align='' width='' id='url_{{ Entity.Links_id }}'>
                {{ listItem.editVal('url',Entity.Links_url,Entity.Links_id) }}
            </td>
            <td align='' width='' id='orders_{{ Entity.Links_id }}'>
                {{ listItem.editVal('orders',Entity.Links_orders,Entity.Links_id) }}
            </td>
            {#<td align='' width='' id='pic_{{ Entity.Links_id }}'>#}
                {#{{ listItem.pic('pic',Entity.Links_pic,Entity.Links_id) }}#}
            {#</td>#}
            <td align='' width=''>
                {{ listItem.edit('Links','',Entity.Links_id) }}
                {{ listItem.copy('Links','',Entity.Links_id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

